<?php
namespace app\api\controller\v2;
use app\api\controller\Common;

class MemberShare extends Common {
	var $modelDb;
	public function _initialize() {
		parent::_initialize();
		$this->modelDb = model("MemberShare");
	}
	public function add() {
		trace($this->postData);
		$this->postData['userid'] = $this->uinfo['userid'];
		$id = $this->modelDb->save_datas($this->postData);
		if ($id === false) {
			return $this->app_error($this->modelDb->getError());
		}
		return $this->app_success();
	}
}